package com.nexen.merchant.member.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nexen.common.annotation.Sensitive;
import com.nexen.common.enums.DesensitizedType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nexen.common.annotation.Excel;
import com.nexen.common.core.domain.BaseEntity;

/**
 * 用户对象 nexen_Member
 * 
 * @author xiao
 * @date 2024-07-31
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY,getterVisibility = JsonAutoDetect.Visibility.NONE)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NexenMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long Id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String Name;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String LicencePlate;

    /** 车牌号 */
    @Excel(name = "驾驶证")
    private String DriverLicence;

    /** 手机号 */
    @Excel(name = "手机号")
    @Sensitive(desensitizedType = DesensitizedType.PHONE)
    private String Mobile;

    /** openid */
    @Excel(name = "openid")
    private String OpenId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date Created;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("Id", getId())
            .append("avatar", getAvatar())
            .append("Name", getName())
            .append("Mobile", getMobile())
            .append("LicencePlate", getLicencePlate())
            .append("DriverLicence", getDriverLicence())
            .append("OpenId", getOpenId())
            .append("Created", getCreated())
            .toString();
    }

}
